import { Result, Button } from 'antd';
import { history } from 'umi';

export default () => {
  const back = () => {
    history.push({
      pathname: '/home',
    });
  };
  return (
    <Result
      status="404"
      title="404"
      subTitle="Sorry, the page you visited does not exist."
      style={{ backgroundColor: '#fff' }}
      extra={
        <Button type="primary" onClick={back}>
          返回首页
        </Button>
      }
    />
  );
};
